:root {
  --color-primary: #0f40f5;
  --color-font-color: #a39b9b;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family:
    Microsoft YaHei,
    Helvetica Neue,
    Helvetica,
    PingFang SC,
    Hiragino Sans GB,
    Arial,
    sans-serif;
  color: #111;
  font-size: 14px;
  background-color: #f5f5f5;
  overflow: hidden;
  word-break: break-all;
}

#app {
  width: 100%;
  height: 100%;
}

// v-cloak
[v-cloak] {
  display: none;
}

// 进度条颜色
#nprogress .bar {
  background: var(--color-primary) !important;
}

// 字体颜色
.color-primary {
  color: var(--color-primary);
}

.color-blue {
  color: #3fb8fc;
}

.color-orange {
  color: #fcb03f;
}

.color-gray {
  color: #888;
}

.color-danger {
  color: #fc3f3f;
}
.flex {
  display: flex;
  align-items: center;
}
.flex-jbtn {
  justify-content: space-between;
}
// flex布局样式
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

// 路由容器
.router-wrapper {
  height: 100%;
}

// 主内容区
.main-content {
  display: flex;
  flex-direction: column;
  height: 100%;

  //筛选栏
  .filter-box {
    flex-shrink: 0;
    margin-bottom: 20px;
    padding: 20px;
    padding-bottom: 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

    .title {
      margin-bottom: 20px;
      font-size: 18px;
    }

    .el-form {
      .item {
        display: flex;
        align-items: center;

        .el-select {
          width: 192px;
        }

        .el-input {
          width: 192px;
        }
      }
    }
  }

  // 内容区域
  .content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
     
    .top-box {
      margin-bottom: 20px;
    }
  }
}

// 详情
.detail-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;

  .detail-content {
    flex: 1;
    overflow: hidden;

    .detail-box {
      margin-bottom: 20px;
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);

      &:last-of-type {
        margin-bottom: 0;
      }

      .detail-title-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;

        span {
          font-size: 16px;
        }

        .el-text {
          margin-left: 10px;
          font-size: 14px;
          cursor: pointer;
        }
      }
    }
  }
}

// 文字按钮
.text-btn {
  margin-left: 10px !important;

  &:hover {
    cursor: pointer;
    opacity: 0.8;
  }
}

// 弹出框
.popover-wrapper {
  .popover-content {
    .title {
      margin-bottom: 20px;
    }

    .content-item {
      .content-item-box {
        display: flex;
        align-items: center;

        .el-input {
          margin-right: 10px;
        }
      }

      .hint-text {
        margin-top: 10px;

        p {
          line-height: normal;
        }
        line-height: normal;
      }
    }

    .btn-box {
      margin-top: 30px;
    }
  }
}
